package log

//
//import (
//	"context"
//	"errors"
//	"gitlab.cqrb.cn/shangyou_mic/shangyou-api-pb/api/application_log_service/v1/receive"
//)
//
//type Sender interface {
//	Push(ctx context.Context, data *receive.LogRequest) error
//}
//
//var DefaultSender = &Client{}
//
//type Client struct {
//	sender Sender
//}
//type Option func(c *Client)
//
//func WithSender(sender Sender) Option {
//	return func(c *Client) {
//		c.sender = sender
//	}
//}
//
//func (c *Client) Send(ctx context.Context, data *receive.LogRequest, opts ...Option) error {
//	for _, opt := range opts {
//		opt(c)
//	}
//	if c.sender == nil {
//		return errors.New("sender is nil")
//	}
//	return c.sender.Push(ctx, data)
//}
